home *** CD-ROM | disk | FTP | other *** search
- /* Demonstrates multiple windows with MathFX library. */
- /* Copyright (©) 1995, The Xperts Group Inc. All Rights Reserved. */
- /* Author: Manolis S Pappas. */
-
- #include <stdio.h>
- #include <math.h>
-
- main()
- {
- int i,j;
- float vmin,vmax;
- char text[3];
-
- /* Divide screen into 16 regions */
-
- fxstar(4,4);
- fxschr(0.0,3.5);
- fxfont(4);
-
- for (i=0; i<=15; i++) {
- sprintf(text,"%d",i);
- fxadv(0);
- vmin = 0.1;
- vmax = 0.9;
- for (j=0; j<=2; j++) {
- fxvpor(vmin,vmax,vmin,vmax);
- fxwind(0.0,1.0,0.0,1.0);
- fxbox("bc",0.0,0,"bc",0.0,0);
- vmin = vmin + 0.1;
- vmax = vmax - 0.1;
- }
- fxptex(0.5,0.5,1.0,0.0,0.5,text);
- }
-
- fxend();
- }
-
-